createFromParcel

abstract fun createFromParcel(in: Parcel, loader: ClassLoader): T(source)

Create a new instance of the Parcelable class, instantiating it from the given Parcel whose data had previously been written by Parcelable.writeToParcel() and using the given ClassLoader.

Return

Returns a new instance of the Parcelable class.

Parameters

in

The Parcel to read the object's data from.

loader

The ClassLoader that this object is being created in.